function Post(post) {
	var self = this;
	
	self.id = post.id;
	self.title = post.title;
	self.subtitle = post.subtitle;
	self.creationDate = post.formattedCreationDate;
	self.description = post.description;
	self.imageUrl = getImagePath('image/postThumb', post.imagePath ? post.imagePath : 'defaultPost.jpg');
	
	self.goToDetail = function() {
		redirect('post/' + self.id + '/' + self.title.replaceAll(" ", "-"));
	};
}